package com.mashibing.common.enums;

import lombok.Getter;

/**
 * @author SNA
 * @date 2025/10/3
 * @Description
 **/
@Getter
public enum CMPP2ResultEnums {
    OK(0, "成功"),
    MESSAGE_STRUCTURE_ERROR(1, "消息结构错误"),
    COMMAND_WORD_ERROR(2, "命令字错误"),
    MESSAGE_SEQUENCE_ERROR(3, "消息序号重复"),
    MESSAGE_LENGTH_ERROR(4, "消息长度错误"),
    TARIFF_CODE_ERROR(5, "资费代码错误"),
    EXCEEDING_MAXIMUM_MESSAGE_LENGTH(6, "超过最大信息长"),
    BUSINESS_CODE_ERROR(7, "业务代码错误"),
    FLOW_CONTROL_ERROR(8, "流量控制错误"),
    UNKNOWN(9, "其他错误"),
    ;

    private Integer result;
    private String msg;

    CMPP2ResultEnums(Integer result, String msg) {
        this.result = result;
        this.msg = msg;
    }
}
